package com.ssh;

import org.junit.Test;

public class IsNumber_65 {
	@Test
	public void test() {
		System.out.println(isNumber("3."));
	}
	
	
	public boolean isNumber(String s) {
		try {
			s = s.trim();
			int c = s.charAt(s.length()-1);
			if ((c >= 48 && c <= 57) || c == 101 || c == 46) {
				Double i = Double.parseDouble(s);
				return true;
			}
		} catch (Exception e) {
			return false;
		}
		return false;
    }
}
